<form role="form" class="form" action="update" method="post" >
    <input class="form-control" type="hidden" name="id" value="{$data.stu_id}">

    <div class="col-lg-3 col-sm-3">
        <div class="form-group">
            
		    <label>名字：</label>
		    <input type="text" class="form-control" name="name" value="{$data.stu_name}">
        </div>
        <div class="form-group">
		    <label>别名：</label>
		    <input type="text" class="form-control" name="subname" value="{$data.stu_subname}">
		</div>
		<div class="form-group">
		    <label>登录账号：</label>
		    <input type="text" class="form-control" name="login" value="{$data.stu_login}">
		</div>
		<div class="form-group">
		    <label>登录密码：</label>
		    <input type="text" class="form-control" name="password" value="{$data.stu_password}">
		</div>
		<div class="form-group">
		    <label>性别：</label>
            <select name="sex" class="form-control">
                {switch name="data.stu_sex"}
                {case value="0"}<option value="0">女</option>{/case}
                {case value="1"}<option value="1">男</option>{/case}
                {case value="2"}<option value="2">其他</option>{/case}
                {/switch}
            </select>
        </div>
	</div>
    <div class="col-lg-3 col-sm-3">
		<div class="form-group">
		    <label>入训时间：</label>
		    <input type="text" class="form-control date" name="enter"  id="entertime" readonly="readonly" value="{$data.stu_entertime}">

		</div>
		<div class="form-group">
		    <label>结训时间：</label>
		    <input type="text" class="form-control date" name="end" id="endtime" readonly value="{$data.stu_endtime}">
		</div>
        <div class="form-group">
		    <label>手机号码：</label>
		    <input type="text" class="form-control" name="tel" value="{$data.stu_tel}">
		</div>
		<div class="form-group">
		    <label>邮箱：</label>
		    <input type="text" class="form-control" name="email" value="{$data.stu_email}">
		</div>
		<div class="form-group">
		    <label>QQ号码：</label>
		    <input type="text" class="form-control" name="qq" value="{$data.stu_qq}">
		</div>                            
    </div>
    <div class="col-lg-6 col-sm-6">
        <div class="form-group">
		    <label>详细地址</label>
		    <input type="text" class="form-control" name="address" value="{$data.stu_address}">
		</div>
		<div class="form-group">
            <a href="javascript:;" class="btn btn-primary" onclick="edu.submit">确定</a>
		</div>
    </div>
    <div class="clearfix"></div>
</form>
<script src="/admin/vendor/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script src="/admin/vendor/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript" src="/admin/script/student/info.js"></script>
<script>
 $('#entertime,#endtime').datetimepicker({
     language:"zh-CN", //汉化
     todayBtn : true,  //显示今天按钮
     autoclose : true,   //选择日期后自动关闭日期选择框
     minView: "month",   //不显示时分秒
     showMeridian: 1,
     format:"yyyy-mm-dd"

 });
</script>
